3.61 \(\int \frac{1}{\sqrt{1+\cos ^2(x)}} \, dx\)

Optimal. Leaf size=9 \[ F\left (\left .x+\frac{\pi }{2}\right |-1\right ) \]

[Out]

EllipticF[Pi/2 + x, -1]

________________________________________________________________________________________

Rubi [A]  time = 0.0077743, antiderivative size = 9, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {3182} \[ F\left (\left .x+\frac{\pi }{2}\right |-1\right ) \]

Antiderivative was successfully verified.

[In]

Int[1/Sqrt[1 + Cos[x]^2],x]

[Out]

EllipticF[Pi/2 + x, -1]

Rule 3182

Int[1/Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2], x_Symbol] :> Simp[(1*EllipticF[e + f*x, -(b/a)])/(Sqrt[a]*
f), x] /; FreeQ[{a, b, e, f}, x] && GtQ[a, 0]

Rubi steps

\begin{align*} \int \frac{1}{\sqrt{1+\cos ^2(x)}} \, dx &=F\left (\left .\frac{\pi }{2}+x\right |-1\right )\\ \end{align*}

Mathematica [A]  time = 0.0330313, size = 11, normalized size = 1.22 \[ \frac{F\left (x\left |\frac{1}{2}\right .\right )}{\sqrt{2}} \]

Antiderivative was successfully verified.

[In]

Integrate[1/Sqrt[1 + Cos[x]^2],x]

[Out]

EllipticF[x, 1/2]/Sqrt[2]

________________________________________________________________________________________

Maple [B]  time = 0.683, size = 41, normalized size = 4.6 \begin{align*} -{\frac{{\it EllipticF} \left ( \cos \left ( x \right ) ,i \right ) }{\sin \left ( x \right ) }\sqrt{ \left ( 1+ \left ( \cos \left ( x \right ) \right ) ^{2} \right ) \left ( \sin \left ( x \right ) \right ) ^{2}}\sqrt{ \left ( \sin \left ( x \right ) \right ) ^{2}}{\frac{1}{\sqrt{1- \left ( \cos \left ( x \right ) \right ) ^{4}}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(1+cos(x)^2)^(1/2),x)

[Out]

-((1+cos(x)^2)*sin(x)^2)^(1/2)*(sin(x)^2)^(1/2)/(1-cos(x)^4)^(1/2)*EllipticF(cos(x),I)/sin(x)

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{\cos \left (x\right )^{2} + 1}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1+cos(x)^2)^(1/2),x, algorithm="maxima")

[Out]

integrate(1/sqrt(cos(x)^2 + 1), x)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{1}{\sqrt{\cos \left (x\right )^{2} + 1}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1+cos(x)^2)^(1/2),x, algorithm="fricas")

[Out]

integral(1/sqrt(cos(x)^2 + 1), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{\cos ^{2}{\left (x \right )} + 1}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1+cos(x)**2)**(1/2),x)

[Out]

Integral(1/sqrt(cos(x)**2 + 1), x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\sqrt{\cos \left (x\right )^{2} + 1}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(1+cos(x)^2)^(1/2),x, algorithm="giac")

[Out]

integrate(1/sqrt(cos(x)^2 + 1), x)